﻿create table [dbo].[shared_database]
(
	[database_id] int not null, 
    [shared_user_id] int not null, 
	foreign key ([database_id]) references [dbo].[database]([database_id]),
	foreign key ([shared_user_id]) references [dbo].[user]([user_id]),
    primary key ([database_id], [shared_user_id])
)
